CreateIpv6EgressOnlyRule
Description
call the CreateIpv6EgressOnlyRule interface to add an active-only rule for IPv6 addresses.
Request Method
POST
Request Path
/apsara/route/Vpc/CreateIpv6EgressOnlyRule
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Description | BODY | string | No | ruledescription | only the description of the active rule. is 2 to 256 characters in length and must start with a letter or Chinese, can contain numbers, dots (.), underscore (_) and dash (-), but you cannot use http:// or https:// beginning. |
InstanceId | BODY | string | Yes | ipv6-hp3nxjkfxn5pnhgl5**** | The ID of the IPv6 address that only the active rule needs to be set. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Ipv6GatewayId | BODY | string | Yes | ipv6gw-hp3c2paq0ywauasza**** | IPv6 gateway ID. |
RegionId | BODY | string | Yes | cn-huhehaote | the region ID of the IPv6 gateway. You can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | 123456 | client token to ensure the idempotence of the request. the parameter value is generated by the client, which must be unique between different requests and the maximum value does not exceed 64 ASCII characters. |
InstanceType | BODY | string | No | IPv6Address | You need to set the instance type of only the active rule, value: Ipv6Address(default):IPv6 address. |
version | BODY | string | No | 2016-01-01 | version of api |
Name | BODY | string | No | rulename | only the name of the active rule. is 2 to 128 characters in length and must start with a letter or Chinese, can contain numbers, dots (.), underscore (_) and dash (-), but you cannot use http:// or https:// beginning. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
Ipv6EgressRuleId | string | ipv6py-hp3w98rmlbqp01245**** | only the ID of the active rule. |
RequestId | string | 9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75 | request ID. |
Example
Successful Response example
{
"Ipv6EgressRuleId":"ipv6py-hp3w98rmlbqp01245****",
"RequestId":"9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}